﻿import os
import imageio


def mp42gif(file_name):
    rd = imageio.get_reader(file_name)
    wt = imageio.get_writer('1.gif',mode="I",size=(80,40))

    for frame in rd:
        wt.append_data(frame)

    

    wt.close();


mp42gif(args[1])

# wt = imageio.get_writer('1.gif',mode="I",fps = 10,size=(80，40))
